{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "b85074aa",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "当前课表情况\n",
      "现在时间00:32\n",
      "Class Schedule Card(课程表)\n",
      "赶紧给我去上：\n",
      "8：00-9：45 English class(大英)\n",
      "12:50-14:20 writing training(写作训练)\n"
     ]
    }
   ],
   "source": [
    "print(\"当前课表情况\")\n",
    "import time\n",
    "# 根据时间查询课表，显示所在上的课程\n",
    "today = time.strftime(\"%A\")\n",
    "now = int(time.strftime(\"%H%M\"))\n",
    "print(\"现在时间{}\".format(time.strftime(\"%H:%M\")))\n",
    "print(\"Class Schedule Card(课程表)\")\n",
    "print(\"赶紧给我去上：\")\n",
    "import datetime\n",
    "time = datetime.datetime.today().weekday()\n",
    "week_time = int(time)\n",
    "if week_time==0:\n",
    "    print(\"having a good break\")\n",
    "elif week_time==1:\n",
    "    print(\"8：00-9：45 English class(大英)\");print(\"12:50-14:20 writing training(写作训练)\")\n",
    "elif week_time==2:\n",
    "    print(\"8：00-9：45 Introduction to Mao\");print(\"10:35-12:00 introduction to advertising\");print(\"14:30-15:55 H5 course\");\n",
    "    print(\"16:10-17:35 Dance appreciation course\")\n",
    "elif week_time==3:\n",
    "    print(\"10:35-12:00 English class\");print(\"20:15-21:45 badminton class\");\n",
    "elif week_time==4:\n",
    "    print(\"9:45-12:00 python language\");print(\"14:30-15:55 Introduction to Mao\")\n",
    "elif week_time==5:\n",
    "    print(\"8：00-9：45 illustrat course\");print(\"9:45-12:00 entrepreneurial foundation\");\n",
    "elif week_time==6:\n",
    "    print(\"there are five days\");print(\"how much homework waiting me！\")\n",
    "    \n",
    "else:\n",
    "    print(\"weekend\");print(\"hard working\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "604b805a",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
